#!/bin/bash

############################################
##
##    NitoTV Install Script
##
##    Created by: h3lbr0 // atvMod.com
##
############################################

#source /Users/frontrow/atvMod_com/scripts/common.vars
PACKAGE="atvfiles"
PACKAGE_URL="http://ericiii.net/sa/appletv/ATVFiles-1.1.0.run"
PACKAGE_FILE="ATVFiles-1.1.0.run"

# echo "Downloading Installer..." > $TMP_LOG; $LOGGER $PACKAGE
# wget -q $PACKAGE_URL 2> $TMP_LOG; $LOGGER $PACKAGE
# echo "Done." > $TMP_LOG; $LOGGER $PACKAGE
# 
# echo "Running Installer..." > $TMP_LOG; $LOGGER $PACKAGE
# echo "N" | sudo sh $PACKAGE_FILE 2> $TMP_LOG; $LOGGER $PACKAGE
# echo "Done." > $TMP_LOG; $LOGGER $PACKAGE
# 
# unset PACKAGE


#Download and run the installer
mkdir /Users/frontrow/atvMod/packages/$PACKAGE
cd  /Users/frontrow/atvMod/packages/$PACKAGE
wget -q $PACKAGE_URL
echo "N" | sudo sh $PACKAGE_FILE